package com.example.ymm.modules1.entity.hl.ex;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * 题目基础信息
 */

@Data
public class ExQuestion implements Serializable {

    @TableId
    private String questionId;

    private String title;

    private String type;// 题目类型: 单选题，多选题

    String explain;// 解析

    String answer;//答案

    String categoryId;

    String categoryName;

    String teamId;
    String teamName;//团队

    String img;//图片

    Integer sort;//排序

    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;


    @TableField(exist = false)
    List<ExQuestionOption> options;

    @TableField(exist = false)
    String pcategoryName;
}
